package com.umpay.dto.merBusi.req.consume;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merBusi.req.CommonBusiReq;
import org.hibernate.validator.constraints.NotEmpty;
/**
 * 
 * @ClassName: ConsumeH5BusiReq  
 * @Description: TODO(这里用一句话描述这个类的作用)  
 * @author zhangtao  
 * @date Mar 13, 2018
 */
public class ConsumeH5BusiReq extends CommonBusiReq{
	/**
	 * 联动订单号
	 */
	@NotEmpty(message = "商户号不能为空")
	@Pattern(message="商户号格式不正确")
	private String merId;
	/**
	 * 业务产品号
	 */
	@NotEmpty(message = "业务产品号不能为空")
	@Pattern(message="业务产品号格式不正确")
	private String bProductId;
	/**
	 * 业务产品号
	 */
	@NotEmpty(message = "支付产品号不能为空")
	@Pattern(message="业务产品号格式不正确")
	private String pProductId;
	
	/**
	 * 联动订单号
	 */
	@NotEmpty(message = "联动订单号不能为空")
	@Pattern(message="联动订单号格式不正确")
	private String tradeNo;
	/**
	 * 支付类型  WECHAT:微信    ALIPAY:支付宝
	 */
	@NotEmpty(message = "支付类型 不能为空")
	private String payType;
	/**
	 * 订单金额
	 */
	@NotEmpty(message = "订单金额不能为空")
	@Pattern(message="订单金额格式不正确")
	private String amount;
	/**
	 * 用户ip
	 */
	@NotEmpty(message = "用户IP不能为空")
	@Pattern(message="用户IP格式不正确")
	private String userIp;
	
	/**
	 * 商户交易流水号
	 */
	private String merTrace;
	
	/**
	 * 后台通知地址
	 */
	@Pattern(message="后台通知地址格式不正确")
	private String notifyUrl;
	
	/**
	 * 前台通知地址
	 */
	@Pattern(message="前台通知地址格式不正确")
	private String retUrl;
	
	/**
	 * 备注
	 */
	@Pattern(message="备注格式不正确")
	private String remark;

	public String getMerId() {
		return merId;
	}

	public void setMerId(String merId) {
		this.merId = merId;
	}

	public String getbProductId() {
		return bProductId;
	}

	public void setbProductId(String bProductId) {
		this.bProductId = bProductId;
	}

	public String getpProductId() {
		return pProductId;
	}

	public void setpProductId(String pProductId) {
		this.pProductId = pProductId;
	}

	public String getTradeNo() {
		return tradeNo;
	}

	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getUserIp() {
		return userIp;
	}

	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}

	public String getMerTrace() {
		return merTrace;
	}

	public void setMerTrace(String merTrace) {
		this.merTrace = merTrace;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}

	public String getRetUrl() {
		return retUrl;
	}

	public void setRetUrl(String retUrl) {
		this.retUrl = retUrl;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return "ConsumeH5BusiReq ["+super.toString()
				+ ", merId=" + merId + ", bProductId=" + bProductId + ", pProductId=" + pProductId
				+ ", tradeNo=" + tradeNo + ", payType=" + payType + ", amount=" + amount + ", userIp=" + userIp
				+ ", merTrace=" + merTrace + ", notifyUrl=" + notifyUrl + ", retUrl=" + retUrl + ", remark=" + remark
				+ "]";
	}
}
